package core;

import java.util.HashMap;
import java.util.Map;

import core.filter.BaseFilter;
import core.filter.type.FilterTypes;

public class FilterFactory {
	
	private static Map<FilterTypes, BaseFilter> filterTypeMap = new HashMap<FilterTypes, BaseFilter>();
	
	public static void registerFilterType(FilterTypes name, BaseFilter filter){
		filterTypeMap.put(name, filter);
	}
	
	public static BaseFilter getFilterInstance(FilterTypes type, double suppressionP, double suppressionR,
			double frequencyP, double frequencyR){
		return filterTypeMap.get(type);
	}
}
